
<?php if(!isset($_GET['listRequest'])){ ?>
<!--添加界面引导 BY zmx-->
<div class="panel modulesintro" data-position="top" data-intro="在这里查看自己的任务">
    <div class="panel-heading">
    	任务列表
    </div>
    <div class="panel-body">
        <div class="widget-container scrollable list task-widget padded">
                <div class="widget-content">
                  <ul id="taskListContent">
                    <?php }else{  $alltask=count($tasklist);$done=0;$undone=0; ?>
                    <?php foreach($list as $v){ ?>
                        <li onClick="_openWindow('{:U('Task_daily/edit',['id'=>$v['id']])}',650, '查看任务', '确定',null,'')" >
                          <label>
                              <span>
                                <?= $v['title'] ?>
                              </span>
                              <div class="btn btn-xs btn-<?= $v['status']==5?'success':'warning' ?> pull-right">
                                <?php switch($v['status']){
                                        case 0:
                                            echo('驳回');
                                            break;
                                        case 3:
                                            echo('待审核');
                                            break;
                                        case 4:
                                            echo('待评分');
                                            break;
                                        case 5:
                                            echo('已完成');
                                            break;
                                        default:
                                            echo('进行中');
                                            break;
                                } ?>
                              </div>
                              <div class="pull-right text-muted">参与人：
                                <?= empty($v['member_name'])?'无':$v['member_name'] ?>
                                &nbsp;&nbsp;
                              </div>
                          </label>
                        </li>
                    <?php }};  if(!isset($_GET['listRequest'])){ ?>
                  </ul>
                  <div id="taskListContentpages" class="text-center">{$pages}</div>
                  <form action="{:U('',['listRequest'=>1])}" id="taskListContentform" method="post"></form>
                </div>
        </div>
    </div>
    <script>$('#taskListContent').ajaxlist({append:false,success:function(){}});</script>
</div>



<?php } ?>
